﻿using UnityEngine;
using System.Collections;

public class GrandientWithGesture : MonoBehaviour {
    public GameObject GestureObject;

    void Update()
    {
        if(GestureObject !=null)
        {
            Explosion explosion = GetComponent<Explosion>();
            if (explosion == null)
                return;
            GestureRaise gesture = GestureObject.GetComponent<GestureRaise>();
            explosion.SetExplosionColor(gesture.fValue);
        }
    }
}
